<template>
  <div class="not-found">
    <a-result
      status="404"
      title="404"
      sub-title="糟糕，找不到您需要的页面😨😰..."
    >
      <template #extra>
        <a-button type="primary" @click="goHome">Back Home</a-button>
      </template>
    </a-result>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()
const goHome = () => {
  router.push('/')
}
</script>

<style lang="scss" scoped>
@include b(not-found) {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  @include e(img) {
    width: 600px;
  }
  @include e(message) {
    margin-top: 24px;
    font-size: 28px;
    color: #9e9e9e;
  }
}
</style>
